package design.test7Comand;

/**
 * 抽象命令角色
 */
public abstract class Command {
    //这里的接受者可以定义成一个 list列表，然后在excute中循环执行
    protected Receiver receiver;
    public Command(Receiver receiver) {
        this.receiver = receiver;
    }

    /**
     * 下达命令的方法
     */
    abstract public void execute();

}
